require(["config"],function(){
	require(["jquery","header","carousel"],function($){
		function Index(){
			this.loadCarousel();
		}
		$.extend(Index.prototype,{
			loadCarousel:function(){
				$(".slider").carousel({
					imgs:[
						{href:"#",src:"/imgs/banner1.jpg"},
						{href:"#",src:"/imgs/banner2.jpg"}
					],
					width: 1920,
					height: 680,
					duration: 3000
				});
			}
		});
		new Index();
	});
});